package niit.wei.service;

import niit.wei.dto.Page;
import niit.wei.entity.Book;

import java.sql.SQLException;
import java.util.List;

public interface BookService {
    void addBook(Book book);
    List<Book> getAllBooks() throws SQLException, ClassNotFoundException, NoSuchFieldException, InstantiationException, IllegalAccessException;
    Book getBookById(int id);
    void updateBook(Book book);
    void deleteBook(int id);

    /**
     * 分页查询
     *
     */

    Page getBookPage(Integer pageNo,Integer pageSize);

}
